//
//  MessageListTableViewCell.m
//  JHZWeiBo
//
//  Created by 张德培 on 16/5/27.
//  Copyright © 2016年 蒋晨成. All rights reserved.
//

#import "MessageListTableViewCell.h"

@implementation MessageListTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.headimage = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 60, 60)];
        _headimage.contentMode =  UIViewContentModeScaleAspectFit;
        _headimage.clipsToBounds  = YES;
        self.headimage.layer.cornerRadius = 30;
        self.headimage.layer.masksToBounds = YES;
        [self.contentView addSubview:_headimage];
        
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(90, 20, kWidth - 150, 30)];
        self.titleLabel.font = [UIFont systemFontOfSize:20];
        [self.contentView addSubview:_titleLabel];
        
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(kWidth - 40, 20, 20, 30)];
        _label.text = @">";
        _label.hidden = YES;
        [self.contentView addSubview:_label];
        
    }
    return  self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
